#include "NVM.h"
#include <QApplication>

#include "QDebug"




void NVM::Init(){

  if(settings==nullptr){
    QString dir=QCoreApplication::applicationDirPath();

    dir+="/config.ini";

    settings=new QSettings(dir,QSettings::IniFormat);
  }

}

void NVM::DeInit(){
  if(settings!=nullptr){
    delete (QSettings*)settings;
    settings=nullptr;
  }
}

QSettings* NVM::settings=nullptr;



